home *** CD-ROM | disk | FTP | other *** search
- Path: vccnorth12.its.rpi.edu!fongc
- From: fongc@vccnorth12.its.rpi.edu (Chun Hing Fong)
- Newsgroups: comp.lang.c++
- Subject: extern ERROR ????
- Date: 15 Feb 1996 04:54:40 GMT
- Organization: its
- Message-ID: <4fueag$g67@usenet.rpi.edu>
- NNTP-Posting-Host: vccnorth12.its.rpi.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi !!
- Cna anyone help me with this C++ problem??
- I have C++ program trying to use C library CURSES.
-
- And I tried to use extern thing but it keeps giving me errors.
- I'm basically working on IBM RS/6000 aix 3.2.5 with xlC compiler.
-
- ================= the source code =================
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #include <curses.h>
-
- #ifdef __cplusplus
- }
- #endif
-
- ======================================================
- ================== Error ====================
-
- ~/MPS/SIM/S7 (85) make gui.o
- xlC -o gui.o -c gui.C -lcurses -I/dept/cs/include/stl
- "/usr/include/curses.h", line 79.14: 1540-090: (S) Syntax error - expected "declarator" and found "int".
- "gui.C", line 15.1: 1540-090: (S) Syntax error - expected "declarator" and found "}".
- "gui.C", line 89.9: 1540-013: (S) "wprintw" is undefined.
- "gui.C", line 122.40: 1540-090: (S) Syntax error - expected "type name" and found "pipeline".
- make: 1254-004 The error code from the last command is 1.
-
- Make Quitting.
- ~/MPS/SIM/S7 (86)
-
- =============================================================
-
- Can anyone figure this one out ??? Thanks !!!!!
-
- CHF
-